package siac.com.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the auth_operacao database table.
 * 
 */
@Entity
@Table(name="auth_operacao")
@NamedQueries({
		@NamedQuery(name = "AuthOperacao.findAll", query = "SELECT e FROM AuthOperacao e"),
		@NamedQuery(name = "AuthOperacao.findById", query = "SELECT e FROM AuthOperacao e WHERE e.idOperacao = :idTabela"),
		@NamedQuery(name = "AuthOperacao.findByCode", query = "SELECT e FROM AuthOperacao e WHERE e.code = :code"),
		@NamedQuery(name = "AuthOperacao.findByName", query = "SELECT e FROM AuthOperacao e WHERE e.operacao = :name"),
		@NamedQuery(name = "AuthOperacao.findByStatus", query = "SELECT e FROM AuthOperacao e WHERE e.idStatus = :status"),
		@NamedQuery(name = "AuthOperacao.findByAccao", query = "SELECT e FROM AuthOperacao e WHERE e.idAccao = :accao"),
		@NamedQuery(name = "AuthOperacao.findBySistema", query = "SELECT e FROM AuthOperacao e WHERE e.idSistema = :sistema"),
		@NamedQuery(name = "AuthOperacao.findByTipoOperacao", query = "SELECT e FROM AuthOperacao e WHERE e.idTpOperacao = :tipoOperacao") })
public class AuthOperacao implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int idOperacao;

	private String code;

	private Timestamp dataModific;

    @Temporal( TemporalType.TIMESTAMP)
	private Date dataRegisto;

	private int idAccao;

	private int idSistema;

	private int idStatus;

	private int idTpOperacao;

	private String link;

	private String operacao;

	private int opModific;

	private int opRegisto;

    public AuthOperacao() {
    }

	public int getIdOperacao() {
		return this.idOperacao;
	}

	public void setIdOperacao(int idOperacao) {
		this.idOperacao = idOperacao;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Timestamp getDataModific() {
		return this.dataModific;
	}

	public void setDataModific(Timestamp dataModific) {
		this.dataModific = dataModific;
	}

	public Date getDataRegisto() {
		return this.dataRegisto;
	}

	public void setDataRegisto(Date dataRegisto) {
		this.dataRegisto = dataRegisto;
	}

	public int getIdAccao() {
		return this.idAccao;
	}

	public void setIdAccao(int idAccao) {
		this.idAccao = idAccao;
	}

	public int getIdSistema() {
		return this.idSistema;
	}

	public void setIdSistema(int idSistema) {
		this.idSistema = idSistema;
	}

	public int getIdStatus() {
		return this.idStatus;
	}

	public void setIdStatus(int idStatus) {
		this.idStatus = idStatus;
	}

	public int getIdTpOperacao() {
		return this.idTpOperacao;
	}

	public void setIdTpOperacao(int idTpOperacao) {
		this.idTpOperacao = idTpOperacao;
	}

	public String getLink() {
		return this.link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getOperacao() {
		return this.operacao;
	}

	public void setOperacao(String operacao) {
		this.operacao = operacao;
	}

	public int getOpModific() {
		return this.opModific;
	}

	public void setOpModific(int opModific) {
		this.opModific = opModific;
	}

	public int getOpRegisto() {
		return this.opRegisto;
	}

	public void setOpRegisto(int opRegisto) {
		this.opRegisto = opRegisto;
	}

}